<T:ViewBase x:Class="WPFExcelReport.TKSMG02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KSMGMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKSMG.KSMGMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KSMGJHJJ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKSMG.KSMGJHJJ}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KSMGMM:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKSMG.KSMGMM}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KSMGKSTKRS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKSMG.KSMGKSTKRS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KSMGKST:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKSMG.KSMGKST}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KSMGARTGRP:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKSMG.KSMGARTGRP}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KSMGAENZL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKSMG.KSMGAENZL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KSMGAENB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKSMG.KSMGAENB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KSMGAEND:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKSMG.KSMGAEND}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KSMGNEUB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKSMG.KSMGNEUB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KSMGNEUD:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKSMG.KSMGNEUD}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsKSMG,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwKSMG}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwKSMG, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="KSMGMANDANT"
                                    Binding="{Binding Path=KSMGMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGJHJJ"
                                    Binding="{Binding Path=KSMGJHJJ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGJHJJ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGMM"
                                    Binding="{Binding Path=KSMGMM, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGMM}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGKSTKRS"
                                    Binding="{Binding Path=KSMGKSTKRS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGKSTKRS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGKST"
                                    Binding="{Binding Path=KSMGKST, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGKST}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGARTGRP"
                                    Binding="{Binding Path=KSMGARTGRP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGARTGRP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGAENZL"
                                    Binding="{Binding Path=KSMGAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGAENB"
                                    Binding="{Binding Path=KSMGAENB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGAENB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGAEND"
                                    Binding="{Binding Path=KSMGAEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGAEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGNEUB"
                                    Binding="{Binding Path=KSMGNEUB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGNEUB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGNEUD"
                                    Binding="{Binding Path=KSMGNEUD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGNEUD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGFJ"
                                    Binding="{Binding Path=KSMGFJ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGFJ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGPER"
                                    Binding="{Binding Path=KSMGPER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGPER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGPKOST1"
                                    Binding="{Binding Path=KSMGPKOST1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGPKOST1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGPKOST2"
                                    Binding="{Binding Path=KSMGPKOST2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGPKOST2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGPKOST3"
                                    Binding="{Binding Path=KSMGPKOST3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGPKOST3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGPKOST4"
                                    Binding="{Binding Path=KSMGPKOST4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGPKOST4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGPKOST5"
                                    Binding="{Binding Path=KSMGPKOST5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGPKOST5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGSKOST1"
                                    Binding="{Binding Path=KSMGSKOST1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGSKOST1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGSKOST2"
                                    Binding="{Binding Path=KSMGSKOST2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGSKOST2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGSKOST3"
                                    Binding="{Binding Path=KSMGSKOST3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGSKOST3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGSKOST4"
                                    Binding="{Binding Path=KSMGSKOST4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGSKOST4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGSKOST5"
                                    Binding="{Binding Path=KSMGSKOST5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGSKOST5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGIKOSTP1"
                                    Binding="{Binding Path=KSMGIKOSTP1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGIKOSTP1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGIKOSTP2"
                                    Binding="{Binding Path=KSMGIKOSTP2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGIKOSTP2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGIKOSTP3"
                                    Binding="{Binding Path=KSMGIKOSTP3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGIKOSTP3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGIKOSTP4"
                                    Binding="{Binding Path=KSMGIKOSTP4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGIKOSTP4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGIKOSTP5"
                                    Binding="{Binding Path=KSMGIKOSTP5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGIKOSTP5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGIKOST1"
                                    Binding="{Binding Path=KSMGIKOST1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGIKOST1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGIKOST2"
                                    Binding="{Binding Path=KSMGIKOST2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGIKOST2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGIKOST3"
                                    Binding="{Binding Path=KSMGIKOST3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGIKOST3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGIKOST4"
                                    Binding="{Binding Path=KSMGIKOST4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGIKOST4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGIKOST5"
                                    Binding="{Binding Path=KSMGIKOST5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGIKOST5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KSMGFILLER"
                                    Binding="{Binding Path=KSMGFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KSMGFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
